﻿@* TypeVisibility: Internal *@
@model SlamCms.Web.Sitemaps.Breadcrumb
<div class="breadcrumb @Model.ClassName">
@foreach (var node in Model.Nodes) {
    var isLast = node == Model.Nodes.Last();
    if (isLast && Model.IncludeCurrent) {
		<span>@node.Title</span>
    } else {
        <a href="@node.Url">@node.Title</a>
    } 
    if (!isLast) {
        @Html.Raw(Model.Separator)
    }
}
</div>